<?php
declare (strict_types = 1);

namespace app\shop31\controller;
use think\facade\Cache;
use \think\facade\View;
use \think\facade\Db;
use \think\facade\Request;

class Vip{
    public function vip_list()
    {
        $where=[];


        $param=Request::param();

        View::assign($param);
        if (isset($param['keywords']) && !empty($param['keywords'])) $where['keywords']=$param['keywords'];
//        $adv = \think\facade\Db::name('user')->select();
//        View::assign('adv',$adv);
        $adv=\app\shop31\model\User::getUserlist($where,$param);
        View::assign('adv',$adv);
        //助手函数  -  渲染视图
        return view();
    }

    public function vip_add()
    {
        //助手函数  -  渲染视图
        return view();
    }
}